package com.fen.demo003;

import com.fen.demo001.MessageRenderer;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author : lrf
 * @description :
 * @tip :
 * @date : 2019/3/21
 */
public class HelloWorldSpringDI {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("demo003/app-context.xml");

        MessageRenderer mr = context.getBean("renderer", MessageRenderer.class);

        mr.reader();
    }
}
